package com.th.supcom.pds.impl.manager.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.th.supcom.pds.domain.pojo.CpoeBasicFreqDetail;
import com.th.supcom.pds.domain.pojo.Office;
import com.th.supcom.pds.domain.pojo.PdsPrescDetailCombine;
import com.th.supcom.pds.domain.pojo.PhamBasicInfo;
import com.th.supcom.pds.domain.vo.PdsPrescParametersVO;
import com.th.supcom.pds.domain.vo.PhamInfo;
import com.th.supcom.pds.impl.dao.PhamInfoMapper;
import com.th.supcom.pds.impl.manager.PhamInfoManager;

public class PhamInfoManagerImpl implements PhamInfoManager
{
    private PhamInfoMapper m_phamInfoMapper;
    
    
    public void setPhamInfoMapper (PhamInfoMapper phamInfoMapper)
    {
    
        m_phamInfoMapper = phamInfoMapper;
    }

    /**
     * 公司版权信息.
     */
    public static final String copyright = "Copyright 2014, Carefx Corporation";

    /**
     * 提交路径.
     */
    public static final String SCC_BRANCH = "$URL$";

    /**
     * 提交日期.
     */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";

    /**
     * 最终修改人员.
     */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";

    /**
     * 最终版本号.
     */
    public static final String SCC_REVISION = "$Revision$";

    @Override
    public List <PhamInfo> queryPhamInfoByCondition (PdsPrescParametersVO pdsPrescParametersVO)
    {
       
        return m_phamInfoMapper.queryPhamInfoByCondition (pdsPrescParametersVO);
         
    }

    @Override
    public List <String> findPhamBasicInfoSplitByMap (Map <String, Object> params)
    {
        
        return m_phamInfoMapper.findPhamBasicInfoSplitByMap (params);
         
    }

    @Override
    public PhamBasicInfo getPhamBasicInfoByMap (Map <String, Object> params)
    {
        
        return m_phamInfoMapper.getPhamBasicInfoByMap (params);
         
    }

    @Override
    public CpoeBasicFreqDetail getCpoeBasicFreqDetailByID (String freqCode)
    {
        Map <String, Object> param=new HashMap <String, Object>();
        param.put ("freqCode", freqCode);
        return m_phamInfoMapper.getCpoeBasicFreqDetailByID (param);
         
    }

    @Override
    public Integer findDrugStockByExample (PdsPrescDetailCombine pdsPrescDetailCombine)
    {
        
        return m_phamInfoMapper.findDrugStockByExample (pdsPrescDetailCombine);
         
    }

    @Override
    public PhamInfo findPPTBy (PdsPrescDetailCombine pdsPrescDetailCombine)
    {
        
        return m_phamInfoMapper.findPPTBy(pdsPrescDetailCombine);
         
    }

    @Override
    public List <String> findDrugBatchNumber (Map <String, Object> map)
    {
        
        return m_phamInfoMapper.findDrugBatchNumber (map);
         
    }

    @Override
    public List <Office> findExecutiveOffice (PdsPrescDetailCombine pdsPrescDetailCombine)
    {
        return m_phamInfoMapper.findExecutiveOffice (pdsPrescDetailCombine);
    }

}
